package com.it.listener;

import com.it.service.ISysPermissionService;
import lombok.RequiredArgsConstructor;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
public class InitResourcePermissionCache implements CommandLineRunner {


 private final ISysPermissionService iSysPermissionService;

 @Override
 public void run(String... args) {
 iSysPermissionService.refreshPermRolesRules();
 }
}